import dayjs from 'dayjs'

export const formatDate = (time, str = '-') => {
  return dayjs(time).format(`YYYY${str}MM${str}DD`)
}
